<?php

/**
 * OfferForm class.
 * OfferForm is the data structure for keeping
 * user offer / fb note data. 
 */
class OfferForm extends CFormModel
{
	public $subject;
	public $message;
	public $fbnote;

	/**
	 * Declares the validation rules.
	 * The rules state that username and password are required,
	 * and password needs to be authenticated.
	 */
	public function rules()
	{
		return array(
			// username and password are required
			array('subject, message', 'required'),
			// rememberMe needs to be a boolean
			array('fbnote', 'boolean'),
		);
	}

	/**
	 * Declares attribute labels.
	 */
	public function attributeLabels()
	{
		return array(
			'subject' => 'Titel',
			'message' => 'Anzeige Text',
			'comment' => 'Anzeige Text Detail',
			'fbnote'=>'Facebook Notiz erstellen',
		);
	}

}
